/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hw2;

/**
 *
 * @author Avishay
 */
public class Doorway {

    private int size;
    private char direction;

    public Doorway(int size, char direction) {

        if ('S' != direction && 'N' != direction && 'W' != direction && 'E' != direction) {
            direction = 'W';
        }

        this.size = size;
        this.direction = direction;
    }
}
